// 首先导入刚刚封装好的request.js文件  路径存储根据自己修改
import request from './request'

// 预警数量
export function queryWarningNum(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryWarningNum",
        params: {saId:1}
    })
}
/**
 * @name 查询预警列表
 * @param {saId} saId String
 * @param {type} type String 0全部，1待处理，2已处理
 * @returns 
 */
export function queryWarningList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryWarningList",
        params: data
    })
}


/**
 * @name 查询预警详情
 * @param {id} id String
 */
export function queryWarningInfo(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryWarningInfo",
        params: data
    })
}
/**
 * @name 处理预警
 * @param {id} id String
 * @param {status} status String 1变为处理中，2变为已处理
 * @param {remark} remark String 处理的描述
 */
export function updateWarningInfoStatus(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/updateWarningInfoStatus",
        data: data
    })
}
/**
 * @name 查询危化品车辆信息（当前）
 * @param {saId} saId String
 */
export function queryDangerousCarInfo(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryDangerousCarInfo",
        params: data
    })
}
/**
 * @name 查询危化品车辆信息（历史）
 * @param {saId} saId String
 * @param {plate} plate String  车牌号
 * @param {start} start String  开始时间
 * @param {end} end String  结束时间
 */
export function queryDangerousCarInfoAll(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryDangerousCarInfoAll",
        params: data
    })
}
/**
 * @name 查询应急处理
 * @param {saId} saId String
 */
export function queryCarBelonging(data) {
    return request({
        method: 'POST',
        url: "/etc-service-area/queryCarBelonging",
        params: data
    })
}
/**
 * @name 查询服务区实时设备
 * @param {saId} saId String
 */
export function queryDeviceNum(data) {
    return request({
        method: 'POST',
        url: "/etc-service-area/queryDeviceNum",
        params: data
    })
}
/**
 * @name 查询摄像头详情
 * @param {saId} saId String
 */
export function queryCameraList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryCameraList",
        params: data
    })
}
/**
 * @name 查询停车位展示
 * @param {saId} saId String
 */
export function queryParkingSpace(data) {
    return request({
        method: 'POST',
        url: "/etc-service-area/queryParkingSpace",
        params: data
    })
}
/**
 * @name 查询防偷油
 * @param {saId} saId String
 */
export function queryAntiTheftOilList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryAntiTheftOilList",
        params: data
    })
}
/**
 * @name 查询新能源
 * @param {saId} saId String
 */
export function queryNewEnergyWarningList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-parking/queryNewEnergyWarningList",
        params: data
    })
}

/**
 * @name 单品销售额top10
 * @param {type} type String 1餐饮，2商超
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryCommodityMoneyTop10(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCommodityMoneyTop10",
        params: data
    })
}
/**
 * @name 单品销售额top10
 * @param {type} type String 1餐饮，2商超
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryCommodityNumTop10(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCommodityNumTop10",
        params: data
    })
}
/**
 * @name 商家销售额top10
 * @param {type} type String 1餐饮，2商超
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryStoreMoneyList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryStoreMoneyList",
        params: data
    })
}

/**
 * @name 销售统计（商超、餐饮）
 * @param {type} type String 1餐饮，2商超
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryTurnoverMoneyList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryTurnoverMoneyList",
        params: data
    })
}
/**
 * @name 当期销售额（商超、餐饮）
 * @param {type} type String 1餐饮，2商超
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryTurnoverMoney(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryTurnoverMoney",
        params: data
    })
}
/**
 * @name 单品销售量top10库存
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryCommodityNumTop10Stock(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCommodityNumTop10Stock",
        params: data
    })
}

/**
 * @name 维修部-入场车辆类型
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryRepairCarNum(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryRepairCarNum",
        params: data
    })
}
/**
 * @name 维修部-库存
 */
export function queryCarPartsNum(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCarPartsNum",
        params: data
    })
}
/**
 * @name 维修部-销售额统计
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryCarPartsMoneyDayList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCarPartsMoneyDayList",
        params: data
    })
}


/**
 * @name 销售额对比-维修部
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryRepairAllMoney(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryRepairAllMoney",
        params: data
    })
}
/**
 * @name 加油站-入场车辆类型
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryCarTypeNumList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryCarTypeNumList",
        params: data
    })
}
/**
 * @name 加油站-各类型销售趋势
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryGasolineTypeMoneyDayList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryGasolineTypeMoneyDayList",
        params: data
    })
}

/**
 * @name 加油站-销售额对比
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryGasAllMoney(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryGasAllMoney",
        params: data
    })
}
/**
 * @name 加油站-收入来源
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryGasolineMoneyList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryGasolineMoneyList",
        params: data
    })
}
/**
 * @name 加油站-销售趋势
 * @param {startDate} startDate 2024-04-20 00:00:00
 * @param {endDate} startDate 2024-04-25 00:00:00
 */
export function queryGasolineMoneyDayList(data) {
    return request({
        method: 'POST',
        url: "/sa-service-business/queryGasolineMoneyDayList",
        params: data
    })
}